<% title "All Users" %>

<% content_for_header render :partial => 'users_sub_navigation' %>

<h2>Users</h2>

<% for user in @users %>
<p><%= link_to(user.name, user_path(user, :subdomain => current_subdomain)) %> <%= user.created_at %> - <%= user.email %> - <%= link_to('Poista', user, :confirm => 'Oletko varma?', :method => :delete) if user.id != current_user.id && current_user.admin? %></p>
<% end %>